//
//  SNAccountCell.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/21.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "SNAccountCell.h"

@interface SNAccountCell()

@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *passwordLabel;
@property (weak, nonatomic) IBOutlet UILabel *typeNameLabel;

@end
@implementation SNAccountCell
-(void)setModel:(NSDictionary *)model{
    _model = model;
    
    self.phoneLabel.text = model[@"phone"];
    self.passwordLabel.text = model[@"password"];
    self.typeNameLabel.text = model[@"name"];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.contentView.layer.corne    rRadius = 4;
//    // self.bgView.layer.masksToBounds = YES;
//    
//    self.contentView.layer.shadowColor = HexRGB(0xdddddd).CGColor;//shadowColor阴影颜色
//    self.contentView.layer.shadowOffset = CGSizeMake(1,1);//shadowOffset阴影偏移,x向右偏移4，y向下偏移4，默认(0, -3),这个跟shadowRadius配合使用
//    self.contentView.layer.shadowOpacity = 1.0;//阴影透明度，默认0
//    self.contentView.layer.shadowRadius = 4;//阴影半径，默认3
    
    self.contentView.layer.borderColor = HexRGB(0xdddddd).CGColor;
    self.contentView.layer.borderWidth = 2;
    self.contentView.layer.cornerRadius = 4;
    self.contentView.layer.masksToBounds = YES;
}

@end
